package com.shh.rabbitmq.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.shh.rabbitmq.domin.OrderDO;

public class OrderMapper implements RowMapper<OrderDO>{
	    @Override
	    public OrderDO mapRow(ResultSet rs, int rowNum) throws SQLException {
	    	OrderDO order = new OrderDO();
	    	order.setOrderNo(rs.getString(1));
	    	order.setOrderDesc(rs.getString(2));
	        return order;
	    }

}
